package com.nlelpct.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("department")
public class Department extends Model<Department> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 团队编码
     */
    private String bmbm;

    /**
     * 部门名称
     */
    private String bmmc;

    /**
     * 部门描述
     */
    private String bmms;

    /**
     * 上级部门(顶层 -1，其他)
     */
    private String parentId;

    /**
     * 部门负责人id
     */
    private String bmfzrid;

    /**
     * 状态（0：禁用，1启用）
     */
    private Boolean zt;

    /**
     * 所属企业
     */
    private String companyId;

    /**
     * 所属系统
     */
    private String systemId;

    /**
     * 创建人
     */
    private String creater;

    /**
     * 创建时间
     */
    private LocalDateTime cjsj;

    /**
     * 修改时间
     */
    private LocalDateTime xgsj;


    public static final String ID = "id";

    public static final String BMBM = "bmbm";

    public static final String BMMC = "bmmc";

    public static final String BMMS = "bmms";

    public static final String PARENT_ID = "parent_id";

    public static final String BMFZRID = "bmfzrid";

    public static final String ZT = "zt";

    public static final String COMPANY_ID = "company_id";

    public static final String SYSTEM_ID = "system_id";

    public static final String CREATER = "creater";

    public static final String CJSJ = "cjsj";

    public static final String XGSJ = "xgsj";



}
